package com.xp.pgoj.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;

// org.example.config.RocketMQConfigProperties
@Data
@Component
@ConfigurationProperties(prefix = "rocketmq")
public class RocketMQConfigProperties {
  private String nameServer;
  private HashMap<String, String> topic;
  private Consumer consumer;
  @Data
  public static class Consumer {
    private HashMap<String, String> group;
   }
}